﻿@model PagedList<RBS.Core.Model.Hotel.H_Hotel_Cookbook>
@using Webdiyer.WebControls.Mvc

<!--列表-->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
    <tr>
        <th width="8%">选择</th>
        <th align="left">名称</th>
        <th align="left">单价</th>
        <th align="left">种类</th>
        <th align="left">单位</th>
        <th align="left">分量</th>
        <th align="left">擅长厨师</th>
        <th align="left">特价标识</th>
        <th align="left">菜系</th>
        <th align="left">打折标识</th>
        <th align="left">分类</th>
        <th width="8%">操作</th>
    </tr>
    @if (null != ViewData.Model)
    {
        foreach (var item in ViewData.Model)
        {
            <tr>
            <td align="center">
                <input type="checkbox" id="chkId" value="@item.Id" class="checkall" style="vertical-align: middle;" />
                <input id="hidId" type="hidden" value="@item.Id"/>
            </td>
            <td align="left">
                @Html.DisplayFor(modelItem => item.Name)
            </td>
            <td align="left">
                @Html.DisplayFor(modelItem => item.Price)
            </td>
            <td align="left">
                @Html.DisplayFor(modelItem => item.Species)
            </td>
            <td align="left">
                @Html.DisplayFor(modelItem => item.Unit)
            </td>
            <td align="left">
                @Html.DisplayFor(modelItem => item.GoodCook)
            </td>
            <td align="left">
                @Html.DisplayFor(modelItem => item.Special)
            </td>
            <td align="left">
                @Html.DisplayFor(modelItem => item.Cuisine)
            </td>
            <td align="left">
                @Html.DisplayFor(modelItem => item.Discount)
            </td>
            <td align="left">
                @Html.DisplayFor(modelItem => item.CategoryId)
            </td>
            <td align="center">
                @Html.ActionLink("修改", "CookbookEdit", new { id = item.Id, action = @RBS.Common.RBSEnums.ActionEnum.Edit })
            </td>
        </tr>
        }
    }
</table>
<!--/列表-->
<!--内容底部-->
<div class="line20">
</div>
<div class="pagelist">
    <div class="l-btns">
        <span>显示</span> <span>10 条/页</span><span>共 @Model.TotalPageCount 页 @Model.TotalItemCount 条记录，当前为第 @Model.CurrentPageIndex 页</span>
    </div>
    @Html.Pager(Model, new PagerOptions { PageIndexParameterName = "pageIndex", ShowPageIndexBox = true, PageIndexBoxType = PageIndexBoxType.DropDownList, ShowGoButton = false, CurrentPagerItemWrapperFormatString = "<span class=\"current\">{0}</span>" }, new { id = "PageContent", @class = "default" })
    @section Scripts{@{Html.RegisterMvcPagerScriptResource();}}
</div>
<!--/内容底部-->


